//package com.hzeport.bgs22emduty.service.impl;
//
//public class test {
//
//    public static void main(String[] args) {
//        try {
//            OguBeanReaderHelper helper = new OguBeanReaderHelper();
//            OrganizationChildren[] base_views = helper.getBeanOrganizationChildren(systemConfig.getViewValues(), ViewCategory.ViewCode, systemConfig.getOrgValues(), OrganizationCategory.ORG_ALL_PATH_NAME, ListObjectCategories.Users, ObjectStatusCategories.All, 0, "05,06,07,08,99", "", "", 0, "PARENT_GUID,USER_GUID,DEPT_GUID,DISPLAY_NAME,PERSON_ID,GLOBAL_SORT,STATUS,ALL_PATH_NAME,RANK_CODE");
//            if(base_views != null && base_views.length > 0) {
//                List<SsoPerson> ssoPersonList = new ArrayList<>();
//                for(int i = 0; i < base_views.length; i++) {
//                    OrganizationChildren organizationChildren = base_views[i];
//                    String all_path_name = organizationChildren.getAll_path_name();
//                    String display_name = organizationChildren.getDisplay_name();
//                    String global_sort = organizationChildren.getGlobal_sort();
//                    String user_guid = organizationChildren.getUser_guid();
//                    String rank_code = organizationChildren.getRank_code();
//                    String parent_guid = organizationChildren.getParent_guid();
//                    String person_id = organizationChildren.getPerson_id();
//                    String status = organizationChildren.getStatus();
//                    SsoPerson ssoPerson = new SsoPerson();
//                    ssoPerson.setAllPathName(all_path_name);
//                    ssoPerson.setDeptGuid(parent_guid);
//                    ssoPerson.setDisplayName(display_name);
//                    ssoPerson.setGlobalSort(global_sort);
//                    ssoPerson.setPersonId(person_id);
//                    ssoPerson.setRankCode(rank_code);
//                    ssoPerson.setStatus(Long.valueOf(status));
//                    ssoPerson.setUserGuid(user_guid);
//                    ssoPersonList.add(ssoPerson);
//                }
//                ssoPersonRepository.saveOrUpdateBatch(ssoPersonList);
//            }
//        } catch (Exception e) {
//            log.error("获取人员异常", e);
//        }
//
//    }
//}
